package com.tang.crm.controller;

import com.tang.crm.base.BaseController;
import com.tang.crm.dto.OrderDetailsDto;
import com.tang.crm.service.OrderDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * 订单详细管理
 * @author SHIRELY阳
 */
@Controller
@RequestMapping("/order_details")
public class OrderDetailsController extends BaseController {

    @Autowired
    private OrderDetailsService orderDetailsService;

    /**
     * 分页条件查询订单详情列表
     * @param orderDetailsDto
     * @return
     */
    @RequestMapping("/list")
    @ResponseBody
    public Map<String, Object> selectByParams(OrderDetailsDto orderDetailsDto){
        return orderDetailsService.selectByParams(orderDetailsDto);
    }
}
